<template>
	<view class="playing u-skeleton">
		<u-navbar title="玩法攻略" :background="{
			'backgroundColor':'#fff'
		}" :borderBottom="false" class="u-skeleton-rect"></u-navbar>
			<view class="context u-skeleton-rect">
				<u-parse :html="context"></u-parse>
			</view>
		<u-skeleton :loading="loding" :animation="true" bgColor="#FFF"></u-skeleton>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				loding: true, //初始化骨架屏展示
				context:null
			}
		},
		onShow() {
			this.getinfo();
			
		},
		methods: {
			//获取玩法攻略
			getinfo() {
				this.$http.asyncSendrequest({
					url: '/goods/flashcardConfig',
					success: res => {
						if(res.code == '0') {
							this.loding = false;
							this.context = res.data.app_play;
						} else {
							this.$util.taost({
								title:res.msg
							})
						}
					}
				})
			}

		}
	}
</script>

<style lang="scss" scoped>
	.playing{
		width: 100%;
		height: 100vh;
		.context{
			height: calc(100vh - 160rpx);
			background: #fff;
			margin: 30rpx 30rpx 0;
			border-radius: 10rpx;
			padding: 30rpx;
		}
	}
</style>